Skip to content

feat: add chat UI with Arcjet protection#158

Merged
davidmytton merged 1 commit intomainfrom
david/chat
Apr 8, 2026
Merged

feat: add chat UI with Arcjet protection#158
davidmytton merged 1 commit intomainfrom
david/chat

Conversation

@davidmytton
Copy link
Copy Markdown
Collaborator

@davidmytton davidmytton commented Apr 8, 2026

Adds a simple chat UI using relevant Arcjet building blocks and the Vercel AI SDK. It's not linked in the menu and wont be configured when deployed because we don't want to expose this in the general example yet - it will need to be behind auth to track rate limits properly.

image

Co-authored-by: Copilot <copilot@github.com>
@socket-security
Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​ai-sdk/​openai@​3.0.52731008898100
Addednpm/​@​ai-sdk/​react@​3.0.155991007498100
Addednpm/​ai@​6.0.153100100100100100

View full report

@socket-security
Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn Medium
Network access: npm @ai-sdk/gateway in module globalThis["fetch"]

Module: globalThis["fetch"]

Location: Package overview

From: examples/nextjs/package-lock.jsonnpm/ai@6.0.153npm/@ai-sdk/gateway@3.0.93

ℹ Read more on: This package | This alert | What is network access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@ai-sdk/gateway@3.0.93. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn Medium
Network access: npm @ai-sdk/openai in module globalThis["fetch"]

Module: globalThis["fetch"]

Location: Package overview

From: examples/nextjs/package-lock.jsonnpm/@ai-sdk/openai@3.0.52

ℹ Read more on: This package | This alert | What is network access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@ai-sdk/openai@3.0.52. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn Medium
Network access: npm @ai-sdk/provider-utils in module globalThis["fetch"]

Module: globalThis["fetch"]

Location: Package overview

From: examples/nextjs/package-lock.jsonnpm/@ai-sdk/openai@3.0.52npm/ai@6.0.153npm/@ai-sdk/react@3.0.155npm/@ai-sdk/provider-utils@4.0.23

ℹ Read more on: This package | This alert | What is network access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@ai-sdk/provider-utils@4.0.23. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn Medium
Network access: npm @ai-sdk/react in module globalThis["fetch"]

Module: globalThis["fetch"]

Location: Package overview

From: examples/nextjs/package-lock.jsonnpm/@ai-sdk/react@3.0.155

ℹ Read more on: This package | This alert | What is network access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@ai-sdk/react@3.0.155. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn Medium
Network access: npm swr in module globalThis["fetch"]

Module: globalThis["fetch"]

Location: Package overview

From: examples/nextjs/package-lock.jsonnpm/@ai-sdk/react@3.0.155npm/swr@2.4.1

ℹ Read more on: This package | This alert | What is network access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/swr@2.4.1. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn Low
Environment variable access: npm @ai-sdk/provider-utils

Location: Package overview

From: examples/nextjs/package-lock.jsonnpm/@ai-sdk/openai@3.0.52npm/ai@6.0.153npm/@ai-sdk/react@3.0.155npm/@ai-sdk/provider-utils@4.0.23

ℹ Read more on: This package | This alert | What is environment variable access?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should be clear about which environment variables they access, and care should be taken to ensure they only access environment variables they claim to.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@ai-sdk/provider-utils@4.0.23. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

@davidmytton davidmytton added this pull request to the merge queue Apr 8, 2026
Merged via the queue into main with commit 8801867 Apr 8, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants